<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
<%@ include file="/common/taglibs.jsp"%>

<!--header start-->
<div class="header center">
  <div class="page_width div_center">
    <div class="float_left">欢迎光临顺风车！</div>
    <s:if test="#session.niagara_security_session_login != null ">
    	<div class="float_left">&nbsp;&nbsp;&nbsp;<b>欢迎您，<s:property value="#session.niagara_security_session_login"/></b></div>
    	<div class="float_left">&nbsp;&nbsp;&nbsp;&nbsp;[<a href="${ctx}/niagara_security_loginout" target="_self">退出登录</a>]</div>
    </s:if>
    <s:else>
	    <div class="float_left">[<a href="${ctx}/reg/register.action" target="_blank">注册</a>]</div>
	    <div class="float_left">[<a href="${ctx}/login.action" target="_blank">登录</a>]</div>
    </s:else>
    <div class="float_right">
    	<span><img src="${ctx }/images/myhome-img/ddnewhead_operate_icon.gif" /></span>
    	<span><a href="${ctx}/shop/shopping-cart.action" target="_blank">我的购物车<s:if test="#session.shopCart!=null">(<s:property value="#session.shopCart.amount"/>)</s:if></a></span> | 
    	<span><a href="${ctx}/home/upload-book!input.action" target="_blank">免费发布信息</a></span> |   	
    	<span><a href="${ctx}/home/myhome.action" target="_blank">我的货物</a></span> |
    	<span><a href="#" target="_blank">帮助</a></span>
    </div>
  </div>
</div>
<!--header end-->